#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "OpenGLTexture3D.h"
#import "OpenGLCommon.h"
#define FLAG_X_POINTS   36
#define FLAG_Y_POINTS   25

@class GLView;
@interface GLViewController : UIViewController {
    
@private
    OpenGLTexture3D *flagTexture;
    Vertex3D        flagVertices[FLAG_X_POINTS][FLAG_Y_POINTS];
    Vector3D        flagVertexNormals[FLAG_X_POINTS][FLAG_Y_POINTS];
    Vertex3D        *vertices; // create the actual vertices to be submitted to OpenGL based on flagVertices;
    GLfloat         *texCoords;
    Vector3D        *normals;
    GLuint          stripVertexCount;
}
@property (nonatomic, retain) OpenGLTexture3D *flagTexture;
- (void)drawView:(GLView*)view;
- (void)setupView:(GLView*)view;

@end
